package ch07.home;

class Exercise7_11 {
	public static void main(String args[]) {
		MyTv t = new MyTv();

		t.setChannel(10);
		System.out.println("CH:"+t.getChannel());
		t.setChannel(20);
		System.out.println("CH:"+t.getChannel());
		t.gotoPrevChannel();
		System.out.println("CH:"+t.getChannel());
		t.gotoPrevChannel();
		System.out.println("CH:"+t.getChannel());
	}
}
/*
CH:10
CH:20
CH:10
CH:20
*/
